/** @file         rb_tree_port.h
 *  @brief        简要说明
 *  @details      详细说明
 *  @author       Schips
 *  @date         2020-10-25 09:27:19
 *  @version      v1.0
 *  @copyright    Copyright By Schips, All Rights Reserved
 *
 **********************************************************
 *
 *  @attention    NOTE
#*
#*
 *  @par 修改日志:
 *  <table>
 *  <tr><th>Date       <th>Version   <th>Author    <th>Description
 *  <tr><td>2020-10-25 <td>1.0       <td>Schips    <td>创建初始版本
 *  </table>
 *
 **********************************************************
 */

#ifndef __RB_TREE_PORT__
#define __RB_TREE_PORT__

//#define FOR_USER_SPACE
#define FOR_KERNEL_SPACE


#ifdef FOR_KERNEL_SPACE // 内核开发

#include <linux/slab.h>
#define POINTER void __iomem* 

#else
#ifdef FOR_USER_SPACE // 应用开发

#include <stdlib.h>
#define POINTER void* 

#else
#ifdef FOR_CUSTOM // 自定义

#define POINTER void* 

#endif
#endif
#endif


/* 接口*/
POINTER MALLOC(unsigned int size);
void FREE(POINTER addr);

#endif /* Head define end*/

